<div class="fadeIn">
    <br>
    <ol class="breadcrumb" style="margin-bottom: 0px;">
        <li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage></li>
        <li class="active">运营分析工作台 / 流量分析 / 下发流量统计</li>
    </ol>
    <form class="form-inline" action="downFlowRep/out-excel" method="post" id="form">
        <div class="marB15 clearfix">
            <div class="row left marT15 marR10" style="margin-left: 0px;">
                    <span class="search-name">时间选择</span>
                    <div class="controls">
                    <input type="text" ng-model="searchData.startDate"  placeholder="" name="startDate" style="display: none;">
                    <input type="text" ng-model="searchData.endDate"   placeholder="" name="endDate" style="display: none;">
                     <div class="input-prepend input-group">
                       <span class="add-on input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span><input type="text" readonly style="width: 155px"  id="dsTrafficStatisticsDate" class="form-control"  /> 
                       <span class="input-group-addon" ng-click='clearTime()'>清空</span>
                     </div>
                    </div>
            </div>
            <div class="left marT15 marR10">
                <span class="search-name">业务端</span>
                <select class="form-control1" ng-change='getSms()' ng-model="searchData.svrNode" name="svrNode">
					<option value="">全部</option>
					<option value={{row.SVR_NODE}} ng-repeat="row in listData1">{{row.SVR_NODE_NAME}}</option>
				</select>
            </div>
            <div class="left marR10 marT15">
                <span class="search-name">业务类型</span>
                <select class="form-control1" ng-model="searchData.serviceCode" name="serviceCode">
					<option value="">全部</option>
					<option value={{row.serviceCode}} ng-repeat="row in listData2">{{row.serviceName}}</option>
				</select>
            </div>
            <div class="left marT15 marR10">
                <span class="search-name">短信通道</span>
                <select class="form-control1 svrNodeName"  ng-model="searchData.gateLinkId" name="gateLinkId">
                    <option value="">全部</option>
                    <option value={{row.GATE_LINK_ID}} ng-repeat="row in showData">{{row.GATE_LINK_NAME}}</option>
                </select>
            </div>
            <a href="javascript:;" class=" btn btn-primary btn-sm left marT15" id="search" ng-click='search()'><span class="glyphicon glyphicon-search"></span></a>
            <div class="right marT15" style="position:relative">
                <button class="btn btn-sm btn-primary" ng-click='outExcel()'><img style="width:25px; height:20px;" src="img/excel.png">导出表格<span ng-style='loadStyle' class="outExcelLoad"><img  src="img/load.gif"></span>
                </button>
            </div>
        </div>
        <div>
        	<input type="text" ng-model="searchData.isSvrNode"  placeholder="" name="isSvrNode" style="display: none;">
            <input type="text" ng-model="searchData.isServiceType"   placeholder="" name="isServiceType" style="display: none;">
            <input type="text" ng-model="searchData.isGateLink"  placeholder="" name="isGateLink" style="display: none;">
        </div>
    </form>

    <div class="table-box">
            <table class="table table-bordered table-striped text-center bg-info">
                <thead >
                <tr>
                    <td colspan="11" class="text-left">
                         <label class="marL15"><input id="source" type="checkbox"   style="color: #CDDC39;" ng-model="isSvrNode1"> 业务端</label>
                         <label class="marL15"><input id="businessType" type="checkbox"   style="color: #CDDC39;" ng-model="isServiceType1"> 业务类型</label>
                         <label class="marL15"><input id="access" type="checkbox"   style="color: #CDDC39;" ng-model="isGateLink1"> 通道</label>
                    </td>
                </tr>
                <tr class="info">
                    <th class="text-center">序号</th>
                    <th class="text-center">时间</th>
                    <th class="text-center" ng-if="isSvrNode1">业务端</th>
                    <th class="text-center" ng-if="isServiceType1">业务类型</th>
                    <th class="text-center" ng-if="isGateLink1">通道</th>
                    <th class="text-center">短信总发送条数</th>
                    <th class="text-center">发送失败条数</th>
                    <th class="text-center">发送成功条数</th>
                    <th class="text-center">用户接收失败条数</th>
                    <th class="text-center">用户接收成功条数</th>
                    <th class="text-center">未返回用户接收状态条数</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat = "Item in result">
                    <td>{{ $index+1 }}</td>
                    <td class="w115">{{ Item.sday }}</td>
                    <td class="w85" ng-if="isSvrNode1">{{ Item.svrNodeName  }}</td>
                    <td class="w85" ng-if="isServiceType1">{{ Item.serviceName   }}</td>
                    <td class="w85" ng-if="isGateLink1">{{ Item.gateLinkName  }}</td>
                    <td class="w115"><a ng-click='GodsSms(Item.sday,"","","","","",Item.svrNode,Item.serviceCode,Item.gateLinkId)'>{{ Item.total  }}</td>
                    <td class="w115"><a ng-click='GodsSms(Item.sday,"1","","","","",Item.svrNode,Item.serviceCode,Item.gateLinkId)'>{{ Item.sendFail  }}</a></td>
                    <td class="w115"><a ng-click='GodsSms(Item.sday,"","1","","","",Item.svrNode,searchData.serviceCode,Item.gateLinkId)'>{{ Item.sendSuc  }}</a></td>
                    <td class="w115"><a ng-click='GodsSms(Item.sday,"","","1","","",Item.svrNode,Item.serviceCode,Item.gateLinkId)'>{{ Item.recvFail  }}</a></td>
                    <td class="w115"><a ng-click='GodsSms(Item.sday,"","","","1","",Item.svrNode,Item.serviceCode,Item.gateLinkId)'>{{ Item.recvSuc  }}</a></td>
                    <td style="min-width: 160px"><a ng-click='GodsSms(Item.sday,"","","","","1",Item.svrNode,Item.serviceCode,Item.gateLinkId)'>{{ Item.recvNone  }}</a></td>
                </tr>
                </tbody>
            </table>

        </div>
</div>
<!-- 加载框 -->
  <span class='loaded' ng-show='loaded'><img  src="img/load.gif"></span>
<!-- 加载框 完成-->